﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PJ.Data.Inventory;

namespace PJ.Business.Inventory
{
    /// <summary>
    /// InventoryItemSalesParamService class
    /// </summary>
    public class InventoryItemSalesParamService : InventoryItemOrderParamService<IInventoryItemSalesParam, IInventoryItemSalesParamData, IInventoryItemSalesParamProvider>, IInventoryItemSalesParamService
    {
        #region Constructor

        /// <summary>
        /// Initialize
        /// </summary>
        /// <param name="dataService">Data provider</param>
        /// <param name="itemService">Inventory item service</param>
        [Microsoft.Practices.Unity.InjectionConstructor]
        public InventoryItemSalesParamService(IInventoryItemSalesParamProvider dataService)
            : base(dataService)
        {
        }

        #endregion

        #region Public
        /// <summary>
        /// Create new item implementation
        /// </summary>
        /// <returns></returns>
        public override IInventoryItemSalesParam CreateNewItem()
        {
            return new InventoryItemSalesParam(DataService.CreateNewItem());
        }
        #endregion
    }
}
